﻿<UserControl x:Class="AppCommerciaux.Views.ConsulterRendezVousView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dv="clr-namespace:Calendar;assembly=Calendar.DayView" 
        Height="545" Width="1010">
    <Grid x:Name="RendezVousView" HorizontalAlignment="Left" Background="AliceBlue" Height="545" Width="1010">
        <WindowsFormsHost HorizontalAlignment="Left" Height="525" VerticalAlignment="Top" Width="784" Margin="216,10,0,0" Name="myWFH" >
            <WindowsFormsHost.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Créer un nouveau rendez-vous" Name="NewRdvCm" Click="NewRdvCm_Click"/>
                    <MenuItem Header="Modifer un rendez-vous" Name="EditRdvCm"  Click="EditRdvCm_Click" />
                    <MenuItem Header="annuler un rendez-vous" Name="DeleteRdvCm"  Click="DeleteRdvCm_Click" />
                </ContextMenu>
            </WindowsFormsHost.ContextMenu>
            
            <dv:DayView x:Name="dayView1" DaysToShow="7">                
            </dv:DayView>
                
        </WindowsFormsHost>
        <Calendar x:Name="calAgenda" HorizontalAlignment="Left" Margin="20,10,0,0" VerticalAlignment="Top" SelectedDatesChanged="calAgenda_SelectedDatesChanged"/>
        <Button x:Name="ButtonRafraichirCalendar" Content="Rafraîchir" HorizontalAlignment="Left" Margin="20,183,0,0" VerticalAlignment="Top" Width="75" Click="ButtonRafraichirCalendar_Click"/>

    </Grid>
</UserControl>
